<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript" src="/static/js/jquery-1.8.2.js"></script>
<script>
	$(function () {
		$("[value='提交']").click(function () {
			$.post(
			    "../report/addReport",
				$("form").serialize(),
				function (msg) {
			        if(msg=="ok"){
                        alert("新增成功");
                        location.href="/report/ToReportlist";
                    }
                },"text"
			)
        })
    })
</script>
<body>
<form>
	<table>
		<tr>
            <td>请选择类型：
                <select name="rclassify">
                    <option value="日报">日报</option>
                    <option value="周报">周报</option>
                    <option value="月报">月报</option>
                </select>
            </td>
		</tr>
		<tr>
			<td>
				<textarea rows="20px" cols="100px" name="content">
				</textarea>
			</td>
		</tr>
		<tr>
            <td>
                <input type="button" value="提交">
            </td>
		</tr>
	</table>
</form>
</body>
</html>